#!/usr/bin/python
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *

urlpatterns = patterns('contact.web.soft',
    url('^info/$', 'views.get_softinfos', name='get-softinfos'),
    url('^info/save/$', 'views.save_softinfo'),
    url('^downurl/save/$', 'views.save_downurl'),
    url('info/downloads/(?P<key>.*?)/$', 'views.get_downloads', name='get-soft-downloads'),
#    url('info/clean/$', 'views.clean_softinfos', name='clean-softinfos'),
    
    url('spider/template/save/$', 'spider_views.save_template', name='save-spider-template'),
    url('spider/template/finish/(?P<key>\w*)/$', 'spider_views.finish_template', name='finish-spider-template'),
    url('spider/template/$', 'spider_views.get_template', name='get-spider-template'),
    url('spider/((?P<key>\w*)/)?$', 'spider_views.list_templates', name='list-spider-templates'),
)